package com.doubao.notepad_blog_backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubao.notepad_blog_backend.domain.BmsComment;
import com.doubao.notepad_blog_backend.domain.UmsUser;
import com.doubao.notepad_blog_backend.dto.CommentDTO;
import com.doubao.notepad_blog_backend.vo.CommentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BmsCommentMapper extends BaseMapper<BmsComment> {
    List<CommentVO> getCommentsByPostID(String postid);

    BmsComment addComment(CommentDTO dto, UmsUser umsUser);
}
